import api from '@/http/index'

/* 获取审批 */
export const getComFlowProcess = (data) => {
    return new Promise((resolve, reject) => {
        api.post(`/api/ComFlowProcess/GetGridJson`, data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};

export const setComFlow = (data) => {
    return new Promise((resolve, reject) => {
        api.post(`/api/ComFlow/UpdateFrom`, data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
